package com.huilunyingshi.videoprovider.dao;

import com.huilunyingshi.videoprovider.entity.TTvSeries;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Mapper
public interface TTvSeriesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TTvSeries record);

    int insertSelective(TTvSeries record);

    TTvSeries selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TTvSeries record);

    int updateByPrimaryKey(TTvSeries record);

    /**
     * 查询总条数
     * @return
     */
    int getTvSeriesListCount();

    ArrayList<TTvSeries> getTvseriesList(@Param("keyword") String keyword, @Param("start")Integer start, @Param("pageSize")Integer pageSize);

    //根据类型查询详情
    List<Map<String,Object>> getTvseriesTypeList(@Param("lid") Long lid , @Param("start")Integer start, @Param("pageSize")Integer pageSize);

    //根据多类型查询
    List<Map<String,Object>>  getTvseriesTypeLists(@Param("lid") Long lid,@Param("trtId") Long trtId,@Param("areaId")Long areaId,@Param("tsId")Long tsId,@Param("start")Integer start, @Param("pageSize")Integer pageSize);
}